package com.test.pattern.decorator;

/**
 * @ClassName: FriedRice
 * @description: 炒饭(具体构件角色)
 * @author: Mr du
 * @create: 2024-02-21 21:54
 */
public class FriedRice extends FastFood {

    public FriedRice(){
        super(10,"炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
